<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
    <HEAD>
        <title>分类管理-通誉投资咨询有限公司</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
            <link id ="Css1" href="../style/admin/admin.css" rel="stylesheet" type="text/css" title="" media="screen" />        
            <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>
            <script src="../js/admin_cate_list.js" type="text/javascript"></script>
    </HEAD>
    
    <body id="Posts">
        <form name="frmMain" method="post" action="EditCategories.aspx?catid=1" onsubmit="javascript:return WebForm_OnSubmit();" id="frmMain">
<div>
</div>

            <table id="BodyTable" border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td id="Header" colspan="2">
                        <div id="BlogTitle">
                            <a id="BlogTitleLink" href="http://www.ty168cc.com">通誉投资咨询有限公司</a>
                        </div>
                        <div id="SiteTitle">
                            <a id="TitleLink" href="http://www.ty168cc.com/" style="display:none;">
                              <img src="../images/logo.gif" style="border-width:0px;" />
                              </a>
                        </div>
                    </td>
                </tr>
                <tr>
                    
                    <td class="NavHeaderRow">
                        <ul id="TopNav">
                            <li>
                                <a href="category_list.php" id="TabPosts">分类</a>
                            </li>
                            <li>
                                <a href="news_list.php" id="TabArticles">新闻</a>
                            </li>
                        
                        </ul>
                        <div id="SubNav">
                            
                        </div>
                    </td>
                </tr>
                <tr>
                    <td id="Body">
                        <div id="Main">
                            
    <div id="Messages">

</div>
    <div id="Edit">
    <div id="Edit_Header" class="CollapsibleHeader">
        <span>Edit Categories</span>
    </div><div id="cate_contents">
        
        <table class="Listing" cellspacing="0" border="0" id="Edit_dgrItems" style="border-collapse:collapse;">
            <tr class="Header">
                <td>分类名称</td><td>是否显示于首页</td><td>上级分类</td>
                <td>显示新闻内容</td>
                <td>排序</td>
                <td width="40px" align="center">&nbsp;</td><td width="40px" align="center">&nbsp;</td>
            </tr>
            {foreach from=$cate_list item=cate}
              <tr row_id={$cate.cate_id} >
                <td ><a href="javascript:to_edit({$cate.cate_id},{$cate.parent_id})">{$cate.cate_title}</a></td>
                <td><span>{if $cate.is_show_index == 1}是{else}否{/if}</span></td>
                <td>{if $cate.parent_title}{$cate.parent_title}{else}顶级分类{/if}</td>
                <td>{if $cate.open_news == 1}是{else}否{/if}</td>
                <td>{$cate.order_no}</td>
                <td><a href="javascript:to_edit({$cate.cate_id},{$cate.parent_id})" >Edit</a></td>
                <td><a href="javascript:deleteCate({$cate.cate_id})">Delete</a></td>
            </tr>
            {/foreach}
        </table>
    
    </div>
</div>
    <div id="Add">
    <div id="Add_Header" class="CollapsibleTitle">
        <span>Add New Category</span>
    </div><div id="Add_Contents" class="Edit">
        <LABEL class="Block">Title&nbsp;
<span id="Add_valtxbNewTitleRequired" style="color:Red;visibility:hidden;">标题不能为空</span></LABEL> 
<input name="cate_title" type="text" id="cate_title" style="width:150px" />&nbsp;是否显示于首页 
<input type="hidden" id="cate_id" ></input>
<input id="is_show_index" type="checkbox" checked="checked" value="1" />
 &nbsp;上级分类<select id="parent_category_id" style="width:100px;cursor:pointer;">
             <option value="0">顶级分类</option>
             {$cate_option}
         </select>
     &nbsp;显示新闻内容<select id="open_news" style="width:50px;cursor:pointer;">
           <option value="0">否</option>
           <option value="1">是</option>
     </select>
    &nbsp;&nbsp;排序<input type="text" id="category_order" style="width:30px;">     
<BR>
<DIV style="MARGIN-TOP: 8px">
                <a id="Add_lkbPost" class="Button" href="javascript:saveCategory()" >保存</a>
                  <a class="Button" href="javascript:clearCateInput();">清空</a>
                <BR>
                &nbsp;
            </DIV>
    
    </div>
</div>

                        </div>
                    </td>
                </tr>
            </table>
        


</form>
    </body>
</HTML>

